package Test;

import Application.Stack_computePostfix;
import Application.Stack_infix2postfix;

public class TestInfix2postfix {
	public static void main(String [] args){
		//String expression = "a+b*c+(d*e+f)*g";
		String expression = "1+1*4+(1*4+1)*1";
		String output = Stack_infix2postfix.getPostFixExpression(expression);
		System.out.println(output);
		double result = Stack_computePostfix.getPostFixExpressionResult(output);
		System.out.println(result);
	}
}
